<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <script src="./react/react17.development.js"></script>
    <script src="./react/react-dom17.development.js"></script>
    <script src="./react/babel.min.js"></script>
</head>

<body>
    <div id="main"></div>

    <script type="text/babel">
        function Com(props) {
            console.log(props);
            
            return (<div>
                <ComTwo num={20} str="字符内容" bool={true}></ComTwo>
                这是div的内容
            </div>)
        }

        function ComTwo(props) {
            console.log(props);
            return (<div>
                <p>{props.num}</p>
                <p>{props.str}</p>
                </div>)
        } 
         // ReactDOM.render(<Com></Com>,document.getElementById("main"));
       // 
         ReactDOM.render(<Com title="提示内容"/>, document.getElementById("main"));
    </script>
</body>

</html>